import request from '@/router/axios';
import { baseUrl } from '@/config/env';
// dm列表
export const dmList = (params) => request({
    url: baseUrl + '/v1/pc/user/dmUser/list/',
    method: 'get',
    params:{
        ...params
    }
})
//新增dm列表
export const dmadduserList = (data) => request({
    url: baseUrl + '/v1/pc/user/dmUser/add/',
    method: 'POST',
    data
})
//获取dm详情
export const dmgetList = (id) => request({
    url: baseUrl + `/v1/pc/user/dmUser/get/${id}/`,
    method: 'get',
})
//更新dm用户
export const dmupdateuserList = (id,data) => request({
    url: baseUrl + `/v1/pc/user/dmUser/update/${id}/`,
    method: 'PATCH',
    data
})
//删除dm用户
export const dmdeleteuserList = (ids) => request({
    url: baseUrl + `/v1/pc/user/dmUser/delete/`,
    method: 'post',
    data:{
        ids
    }
})